package com.yidu.boss.sys.domain;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

public class ExchangeExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Integer offset;

    public ExchangeExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andExchangeIdIsNull() {
            addCriterion("exchangeId is null");
            return (Criteria) this;
        }

        public Criteria andExchangeIdIsNotNull() {
            addCriterion("exchangeId is not null");
            return (Criteria) this;
        }

        public Criteria andExchangeIdEqualTo(String value) {
            addCriterion("exchangeId =", value, "exchangeId");
            return (Criteria) this;
        }

        public Criteria andExchangeIdNotEqualTo(String value) {
            addCriterion("exchangeId <>", value, "exchangeId");
            return (Criteria) this;
        }

        public Criteria andExchangeIdGreaterThan(String value) {
            addCriterion("exchangeId >", value, "exchangeId");
            return (Criteria) this;
        }

        public Criteria andExchangeIdGreaterThanOrEqualTo(String value) {
            addCriterion("exchangeId >=", value, "exchangeId");
            return (Criteria) this;
        }

        public Criteria andExchangeIdLessThan(String value) {
            addCriterion("exchangeId <", value, "exchangeId");
            return (Criteria) this;
        }

        public Criteria andExchangeIdLessThanOrEqualTo(String value) {
            addCriterion("exchangeId <=", value, "exchangeId");
            return (Criteria) this;
        }

        public Criteria andExchangeIdLike(String value) {
            addCriterion("exchangeId like", value, "exchangeId");
            return (Criteria) this;
        }

        public Criteria andExchangeIdNotLike(String value) {
            addCriterion("exchangeId not like", value, "exchangeId");
            return (Criteria) this;
        }

        public Criteria andExchangeIdIn(List<String> values) {
            addCriterion("exchangeId in", values, "exchangeId");
            return (Criteria) this;
        }

        public Criteria andExchangeIdNotIn(List<String> values) {
            addCriterion("exchangeId not in", values, "exchangeId");
            return (Criteria) this;
        }

        public Criteria andExchangeIdBetween(String value1, String value2) {
            addCriterion("exchangeId between", value1, value2, "exchangeId");
            return (Criteria) this;
        }

        public Criteria andExchangeIdNotBetween(String value1, String value2) {
            addCriterion("exchangeId not between", value1, value2, "exchangeId");
            return (Criteria) this;
        }

        public Criteria andExchangeNameIsNull() {
            addCriterion("exchangeName is null");
            return (Criteria) this;
        }

        public Criteria andExchangeNameIsNotNull() {
            addCriterion("exchangeName is not null");
            return (Criteria) this;
        }

        public Criteria andExchangeNameEqualTo(String value) {
            addCriterion("exchangeName =", value, "exchangeName");
            return (Criteria) this;
        }

        public Criteria andExchangeNameNotEqualTo(String value) {
            addCriterion("exchangeName <>", value, "exchangeName");
            return (Criteria) this;
        }

        public Criteria andExchangeNameGreaterThan(String value) {
            addCriterion("exchangeName >", value, "exchangeName");
            return (Criteria) this;
        }

        public Criteria andExchangeNameGreaterThanOrEqualTo(String value) {
            addCriterion("exchangeName >=", value, "exchangeName");
            return (Criteria) this;
        }

        public Criteria andExchangeNameLessThan(String value) {
            addCriterion("exchangeName <", value, "exchangeName");
            return (Criteria) this;
        }

        public Criteria andExchangeNameLessThanOrEqualTo(String value) {
            addCriterion("exchangeName <=", value, "exchangeName");
            return (Criteria) this;
        }

        public Criteria andExchangeNameLike(String value) {
            addCriterion("exchangeName like", value, "exchangeName");
            return (Criteria) this;
        }

        public Criteria andExchangeNameNotLike(String value) {
            addCriterion("exchangeName not like", value, "exchangeName");
            return (Criteria) this;
        }

        public Criteria andExchangeNameIn(List<String> values) {
            addCriterion("exchangeName in", values, "exchangeName");
            return (Criteria) this;
        }

        public Criteria andExchangeNameNotIn(List<String> values) {
            addCriterion("exchangeName not in", values, "exchangeName");
            return (Criteria) this;
        }

        public Criteria andExchangeNameBetween(String value1, String value2) {
            addCriterion("exchangeName between", value1, value2, "exchangeName");
            return (Criteria) this;
        }

        public Criteria andExchangeNameNotBetween(String value1, String value2) {
            addCriterion("exchangeName not between", value1, value2, "exchangeName");
            return (Criteria) this;
        }

        public Criteria andStampDutyIsNull() {
            addCriterion("stampDuty is null");
            return (Criteria) this;
        }

        public Criteria andStampDutyIsNotNull() {
            addCriterion("stampDuty is not null");
            return (Criteria) this;
        }

        public Criteria andStampDutyEqualTo(BigDecimal value) {
            addCriterion("stampDuty =", value, "stampDuty");
            return (Criteria) this;
        }

        public Criteria andStampDutyNotEqualTo(BigDecimal value) {
            addCriterion("stampDuty <>", value, "stampDuty");
            return (Criteria) this;
        }

        public Criteria andStampDutyGreaterThan(BigDecimal value) {
            addCriterion("stampDuty >", value, "stampDuty");
            return (Criteria) this;
        }

        public Criteria andStampDutyGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("stampDuty >=", value, "stampDuty");
            return (Criteria) this;
        }

        public Criteria andStampDutyLessThan(BigDecimal value) {
            addCriterion("stampDuty <", value, "stampDuty");
            return (Criteria) this;
        }

        public Criteria andStampDutyLessThanOrEqualTo(BigDecimal value) {
            addCriterion("stampDuty <=", value, "stampDuty");
            return (Criteria) this;
        }

        public Criteria andStampDutyIn(List<BigDecimal> values) {
            addCriterion("stampDuty in", values, "stampDuty");
            return (Criteria) this;
        }

        public Criteria andStampDutyNotIn(List<BigDecimal> values) {
            addCriterion("stampDuty not in", values, "stampDuty");
            return (Criteria) this;
        }

        public Criteria andStampDutyBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("stampDuty between", value1, value2, "stampDuty");
            return (Criteria) this;
        }

        public Criteria andStampDutyNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("stampDuty not between", value1, value2, "stampDuty");
            return (Criteria) this;
        }

        public Criteria andTransferRateIsNull() {
            addCriterion("transferRate is null");
            return (Criteria) this;
        }

        public Criteria andTransferRateIsNotNull() {
            addCriterion("transferRate is not null");
            return (Criteria) this;
        }

        public Criteria andTransferRateEqualTo(BigDecimal value) {
            addCriterion("transferRate =", value, "transferRate");
            return (Criteria) this;
        }

        public Criteria andTransferRateNotEqualTo(BigDecimal value) {
            addCriterion("transferRate <>", value, "transferRate");
            return (Criteria) this;
        }

        public Criteria andTransferRateGreaterThan(BigDecimal value) {
            addCriterion("transferRate >", value, "transferRate");
            return (Criteria) this;
        }

        public Criteria andTransferRateGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("transferRate >=", value, "transferRate");
            return (Criteria) this;
        }

        public Criteria andTransferRateLessThan(BigDecimal value) {
            addCriterion("transferRate <", value, "transferRate");
            return (Criteria) this;
        }

        public Criteria andTransferRateLessThanOrEqualTo(BigDecimal value) {
            addCriterion("transferRate <=", value, "transferRate");
            return (Criteria) this;
        }

        public Criteria andTransferRateIn(List<BigDecimal> values) {
            addCriterion("transferRate in", values, "transferRate");
            return (Criteria) this;
        }

        public Criteria andTransferRateNotIn(List<BigDecimal> values) {
            addCriterion("transferRate not in", values, "transferRate");
            return (Criteria) this;
        }

        public Criteria andTransferRateBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("transferRate between", value1, value2, "transferRate");
            return (Criteria) this;
        }

        public Criteria andTransferRateNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("transferRate not between", value1, value2, "transferRate");
            return (Criteria) this;
        }

        public Criteria andHandlingFeeRateIsNull() {
            addCriterion("handlingFeeRate is null");
            return (Criteria) this;
        }

        public Criteria andHandlingFeeRateIsNotNull() {
            addCriterion("handlingFeeRate is not null");
            return (Criteria) this;
        }

        public Criteria andHandlingFeeRateEqualTo(BigDecimal value) {
            addCriterion("handlingFeeRate =", value, "handlingFeeRate");
            return (Criteria) this;
        }

        public Criteria andHandlingFeeRateNotEqualTo(BigDecimal value) {
            addCriterion("handlingFeeRate <>", value, "handlingFeeRate");
            return (Criteria) this;
        }

        public Criteria andHandlingFeeRateGreaterThan(BigDecimal value) {
            addCriterion("handlingFeeRate >", value, "handlingFeeRate");
            return (Criteria) this;
        }

        public Criteria andHandlingFeeRateGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("handlingFeeRate >=", value, "handlingFeeRate");
            return (Criteria) this;
        }

        public Criteria andHandlingFeeRateLessThan(BigDecimal value) {
            addCriterion("handlingFeeRate <", value, "handlingFeeRate");
            return (Criteria) this;
        }

        public Criteria andHandlingFeeRateLessThanOrEqualTo(BigDecimal value) {
            addCriterion("handlingFeeRate <=", value, "handlingFeeRate");
            return (Criteria) this;
        }

        public Criteria andHandlingFeeRateIn(List<BigDecimal> values) {
            addCriterion("handlingFeeRate in", values, "handlingFeeRate");
            return (Criteria) this;
        }

        public Criteria andHandlingFeeRateNotIn(List<BigDecimal> values) {
            addCriterion("handlingFeeRate not in", values, "handlingFeeRate");
            return (Criteria) this;
        }

        public Criteria andHandlingFeeRateBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("handlingFeeRate between", value1, value2, "handlingFeeRate");
            return (Criteria) this;
        }

        public Criteria andHandlingFeeRateNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("handlingFeeRate not between", value1, value2, "handlingFeeRate");
            return (Criteria) this;
        }

        public Criteria andCollectionRateIsNull() {
            addCriterion("collectionRate is null");
            return (Criteria) this;
        }

        public Criteria andCollectionRateIsNotNull() {
            addCriterion("collectionRate is not null");
            return (Criteria) this;
        }

        public Criteria andCollectionRateEqualTo(BigDecimal value) {
            addCriterion("collectionRate =", value, "collectionRate");
            return (Criteria) this;
        }

        public Criteria andCollectionRateNotEqualTo(BigDecimal value) {
            addCriterion("collectionRate <>", value, "collectionRate");
            return (Criteria) this;
        }

        public Criteria andCollectionRateGreaterThan(BigDecimal value) {
            addCriterion("collectionRate >", value, "collectionRate");
            return (Criteria) this;
        }

        public Criteria andCollectionRateGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("collectionRate >=", value, "collectionRate");
            return (Criteria) this;
        }

        public Criteria andCollectionRateLessThan(BigDecimal value) {
            addCriterion("collectionRate <", value, "collectionRate");
            return (Criteria) this;
        }

        public Criteria andCollectionRateLessThanOrEqualTo(BigDecimal value) {
            addCriterion("collectionRate <=", value, "collectionRate");
            return (Criteria) this;
        }

        public Criteria andCollectionRateIn(List<BigDecimal> values) {
            addCriterion("collectionRate in", values, "collectionRate");
            return (Criteria) this;
        }

        public Criteria andCollectionRateNotIn(List<BigDecimal> values) {
            addCriterion("collectionRate not in", values, "collectionRate");
            return (Criteria) this;
        }

        public Criteria andCollectionRateBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("collectionRate between", value1, value2, "collectionRate");
            return (Criteria) this;
        }

        public Criteria andCollectionRateNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("collectionRate not between", value1, value2, "collectionRate");
            return (Criteria) this;
        }

        public Criteria andDescriptionIsNull() {
            addCriterion("description is null");
            return (Criteria) this;
        }

        public Criteria andDescriptionIsNotNull() {
            addCriterion("description is not null");
            return (Criteria) this;
        }

        public Criteria andDescriptionEqualTo(String value) {
            addCriterion("description =", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionNotEqualTo(String value) {
            addCriterion("description <>", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionGreaterThan(String value) {
            addCriterion("description >", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionGreaterThanOrEqualTo(String value) {
            addCriterion("description >=", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionLessThan(String value) {
            addCriterion("description <", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionLessThanOrEqualTo(String value) {
            addCriterion("description <=", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionLike(String value) {
            addCriterion("description like", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionNotLike(String value) {
            addCriterion("description not like", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionIn(List<String> values) {
            addCriterion("description in", values, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionNotIn(List<String> values) {
            addCriterion("description not in", values, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionBetween(String value1, String value2) {
            addCriterion("description between", value1, value2, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionNotBetween(String value1, String value2) {
            addCriterion("description not between", value1, value2, "description");
            return (Criteria) this;
        }

        public Criteria andRemark1IsNull() {
            addCriterion("remark1 is null");
            return (Criteria) this;
        }

        public Criteria andRemark1IsNotNull() {
            addCriterion("remark1 is not null");
            return (Criteria) this;
        }

        public Criteria andRemark1EqualTo(String value) {
            addCriterion("remark1 =", value, "remark1");
            return (Criteria) this;
        }

        public Criteria andRemark1NotEqualTo(String value) {
            addCriterion("remark1 <>", value, "remark1");
            return (Criteria) this;
        }

        public Criteria andRemark1GreaterThan(String value) {
            addCriterion("remark1 >", value, "remark1");
            return (Criteria) this;
        }

        public Criteria andRemark1GreaterThanOrEqualTo(String value) {
            addCriterion("remark1 >=", value, "remark1");
            return (Criteria) this;
        }

        public Criteria andRemark1LessThan(String value) {
            addCriterion("remark1 <", value, "remark1");
            return (Criteria) this;
        }

        public Criteria andRemark1LessThanOrEqualTo(String value) {
            addCriterion("remark1 <=", value, "remark1");
            return (Criteria) this;
        }

        public Criteria andRemark1Like(String value) {
            addCriterion("remark1 like", value, "remark1");
            return (Criteria) this;
        }

        public Criteria andRemark1NotLike(String value) {
            addCriterion("remark1 not like", value, "remark1");
            return (Criteria) this;
        }

        public Criteria andRemark1In(List<String> values) {
            addCriterion("remark1 in", values, "remark1");
            return (Criteria) this;
        }

        public Criteria andRemark1NotIn(List<String> values) {
            addCriterion("remark1 not in", values, "remark1");
            return (Criteria) this;
        }

        public Criteria andRemark1Between(String value1, String value2) {
            addCriterion("remark1 between", value1, value2, "remark1");
            return (Criteria) this;
        }

        public Criteria andRemark1NotBetween(String value1, String value2) {
            addCriterion("remark1 not between", value1, value2, "remark1");
            return (Criteria) this;
        }

        public Criteria andRemark2IsNull() {
            addCriterion("remark2 is null");
            return (Criteria) this;
        }

        public Criteria andRemark2IsNotNull() {
            addCriterion("remark2 is not null");
            return (Criteria) this;
        }

        public Criteria andRemark2EqualTo(Integer value) {
            addCriterion("remark2 =", value, "remark2");
            return (Criteria) this;
        }

        public Criteria andRemark2NotEqualTo(Integer value) {
            addCriterion("remark2 <>", value, "remark2");
            return (Criteria) this;
        }

        public Criteria andRemark2GreaterThan(Integer value) {
            addCriterion("remark2 >", value, "remark2");
            return (Criteria) this;
        }

        public Criteria andRemark2GreaterThanOrEqualTo(Integer value) {
            addCriterion("remark2 >=", value, "remark2");
            return (Criteria) this;
        }

        public Criteria andRemark2LessThan(Integer value) {
            addCriterion("remark2 <", value, "remark2");
            return (Criteria) this;
        }

        public Criteria andRemark2LessThanOrEqualTo(Integer value) {
            addCriterion("remark2 <=", value, "remark2");
            return (Criteria) this;
        }

        public Criteria andRemark2In(List<Integer> values) {
            addCriterion("remark2 in", values, "remark2");
            return (Criteria) this;
        }

        public Criteria andRemark2NotIn(List<Integer> values) {
            addCriterion("remark2 not in", values, "remark2");
            return (Criteria) this;
        }

        public Criteria andRemark2Between(Integer value1, Integer value2) {
            addCriterion("remark2 between", value1, value2, "remark2");
            return (Criteria) this;
        }

        public Criteria andRemark2NotBetween(Integer value1, Integer value2) {
            addCriterion("remark2 not between", value1, value2, "remark2");
            return (Criteria) this;
        }

        public Criteria andRemark3IsNull() {
            addCriterion("remark3 is null");
            return (Criteria) this;
        }

        public Criteria andRemark3IsNotNull() {
            addCriterion("remark3 is not null");
            return (Criteria) this;
        }

        public Criteria andRemark3EqualTo(BigDecimal value) {
            addCriterion("remark3 =", value, "remark3");
            return (Criteria) this;
        }

        public Criteria andRemark3NotEqualTo(BigDecimal value) {
            addCriterion("remark3 <>", value, "remark3");
            return (Criteria) this;
        }

        public Criteria andRemark3GreaterThan(BigDecimal value) {
            addCriterion("remark3 >", value, "remark3");
            return (Criteria) this;
        }

        public Criteria andRemark3GreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("remark3 >=", value, "remark3");
            return (Criteria) this;
        }

        public Criteria andRemark3LessThan(BigDecimal value) {
            addCriterion("remark3 <", value, "remark3");
            return (Criteria) this;
        }

        public Criteria andRemark3LessThanOrEqualTo(BigDecimal value) {
            addCriterion("remark3 <=", value, "remark3");
            return (Criteria) this;
        }

        public Criteria andRemark3In(List<BigDecimal> values) {
            addCriterion("remark3 in", values, "remark3");
            return (Criteria) this;
        }

        public Criteria andRemark3NotIn(List<BigDecimal> values) {
            addCriterion("remark3 not in", values, "remark3");
            return (Criteria) this;
        }

        public Criteria andRemark3Between(BigDecimal value1, BigDecimal value2) {
            addCriterion("remark3 between", value1, value2, "remark3");
            return (Criteria) this;
        }

        public Criteria andRemark3NotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("remark3 not between", value1, value2, "remark3");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}